<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>Sean 统一认证中心</title>
    <meta name="description" content="particles.js is a lightweight JavaScript library for creating particles.">
    <meta name="author" content="Vincent Garreau"/>
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <link rel="stylesheet" media="screen" th:href="@{/css/style.css}">
    <link rel="stylesheet" type="text/css" th:href="@{/css/reset.css}"/>
</head>
<body>

<div id="particles-js">
    <form class="login" th:action="@{/token/auth}" method="post">
        <div class="login-top">
            登录
        </div>
        <div class="login-center clearfix">
            <div class="login-center-img"><img th:src="@{/img/name.png}"/></div>
            <input type="hidden" name="client_id" value="oauth2-client" placeholder="所属客户端"/>
            <input type="hidden" name="grant_type" value="password" placeholder="授权模式"/>
            <div class="login-center-input">
                <input type="text" name="username" value="admin" placeholder="请输入您的用户名"/>
                <div class="login-center-input-text">用户名</div>
            </div>
        </div>
        <div class="login-center clearfix">
            <div class="login-center-img"><img th:src="@{/img/password.png}"/></div>
            <div class="login-center-input">
                <input type="password" name="password" value="" placeholder="请输入您的密码" />
                <div class="login-center-input-text">密码</div>
            </div>
        </div>
        <button class="login-button" type="submit">
            登录
        </button>
        <p style="color: red" th:text="${error}" th:if="${not #strings.isEmpty(error)}"></p>
    </form>
    <div class="sk-rotating-plane"></div>
    <p class="cpRight">ArchieSean <a href="https://beian.miit.gov.cn/" target="_blank">统一授权中心</a></p>
</div>

<!-- scripts -->
<script th:src="@{/js/particles.min.js}"></script>
<script th:src="@{/js/app.js}"></script>
</body>
</html>